"""
Name:abnerclc
Email:abnerclc@hotmail.com
Date:2024.10.12
Env:Python3.6
exserise thread
"""

from threading import Thread
from threading import Event
msg = ()
e= Event()
def likui():
    global msg
    print("李逵拜山头")
    msg = "宝塔镇河妖"
    e.set()
def main():

    t = Thread(target=likui)
    t.start()
    print("说口令")
    e.wait()
    if msg =="宝塔镇河妖":
        print("你是对的人")
    else:
        print("拖出去砍了")



if __name__ == '__main__':
    main()